﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TaiLieu;
using DevExpress.Xpo;
using System.IO;

public partial class tl_tinTuc : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string chitiet = QueryHelper.Get_Value_TheEndOfQueryString(Request);
        switch (chitiet)
        {
            case "chi-tiet":
                LoadControlCenter("tinTuc/chiTietTinTuc.ascx");
                break;
            default:
                LoadControlCenter("tinTuc/tt_sk.ascx");
                break;
        }
    }
    protected void LoadControlCenter(string path)
    {
        this.pntinTuc.Controls.Clear();
        this.pntinTuc.Controls.Add(LoadControl(path));
    }

}
